package controle;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.SwingUtilities;

import vue.onglets.ListeOnglets;
import vue.onglets.MenuContextuelOnglet;

public class ControleActionOnglet implements MouseListener
{
	private ListeOnglets listeOnglets;
	private MenuContextuelOnglet mco;
	
	public ControleActionOnglet(ListeOnglets listeOnglets,MenuContextuelOnglet mco)
	{
		this.listeOnglets = listeOnglets;
		this.mco = mco;
	}
	public void mouseClicked(MouseEvent e){}
	
	public void mousePressed(MouseEvent e) 
	{
		if(SwingUtilities.isRightMouseButton(e))
		{
			mco.show(listeOnglets,e.getX(),e.getY());
		}
	}

	public void mouseReleased(MouseEvent e){}

	public void mouseEntered(MouseEvent e){}

	public void mouseExited(MouseEvent e){}
}
